package com.example.springbootpay.service.impl;

import com.example.springbootpay.service.AbstractPaymentTemplate;

public class AlipayPayment extends AbstractPaymentTemplate {
    @Override
    protected String doUnifiedOrder(String orderId, Integer amount) {
        return "支付宝预支付成功，订单号：" + orderId + " 金额：" + amount + "分";
    }

    @Override
    public String doOrderQuery(String orderId) {
        return "支付宝订单查询成功，订单状态：已支付";
    }

    @Override
    public String doRefund(String orderId, Integer amount) {
        return "支付宝退款成功，退款金额：" + amount + "分";
    }
}